package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.ShoppingCart;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    /**
     * 查询购物车
     */
    List<ShoppingCart> list(ShoppingCart shoppingCart);

    /**
     * 更新数据蓝
     */
    void updateNumberById(ShoppingCart cart);

    /**
     * 插入购物车
     */
    void insert(ShoppingCart shoppingCart);

    /**
     * 清空购物车
     */
    void deleteByUserId(Long userId);

    /**
     * 根据id删除对应购物车
     */
    void deleteById(Long id);
}
